'''
Created on 2010-04-13

@author: piotrek
'''

java_class = \
'''
%s

@PersistenceCapable
public class %s {

\t@PrimaryKey
\t@Persistent(valueStrategy = IdGeneratorStrategy.INDENTITY)
\tprivate Key key;
%s
%s
%s
%s
}
'''

java_db_variable_dec = \
'''
\t@Persistent
\tprivate %s %s;
'''


java_variable_dec = \
'''
\tprivate %s %s;
'''

java_variable_decl = \
'''
\tprivate %s %s=%s;
'''
java_list_decl = \
'''
\tprivate %s %s= new %s() {%s};
'''

java_constructor = \
'''
\tpublic %s(%s) {
%s
\t}
'''

java_getter = \
'''
\tpublic %s get%s() {
\t\treturn %s;
\t}
'''

java_setter = \
'''
\tpublic void set%s(%s %s) {
\t\tthis.%s=%s;
\t}
'''

java_assignment = '''\t\tthis.%s=%s;\n'''
